package me.firstapp.module.shop;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import me.firstapp.module.base.CommonEntity;

/**
 * 订单发货提醒
 * 
 * @author FirstApp.Me
 *
 */
@Entity
@Table(name = "ORDER_DISTRIBUTE_CALL", uniqueConstraints = {
		@UniqueConstraint(columnNames = { "MEMBER_ID", "ORDER_NO" }) })
public class DistributeCall extends CommonEntity {

	private static final long serialVersionUID = 4510164210937595630L;

	// 用户ID
	@Column(name = "MEMBER_ID", nullable = false)
	private Long memberId;

	// 用户名
	@Column(name = "MEMBER_NAME", length = 20, nullable = false)
	private String memberName;

	// 订单号
	@Column(name = "ORDER_NO", length = 50, unique = true, nullable = false)
	private String orderNo;

	// 提醒次数
	@Column(name = "COUNTS", columnDefinition = "TINYINT", nullable = false)
	private Integer counts;

	// 处理状态，0未处理，1已处理
	@Column(name = "STATUS", columnDefinition = "TINYINT DEFAULT 0", nullable = false)
	private Integer status;

	// 创建时间
	@Column(name = "CREATE_TIME", columnDefinition = "DATETIME", nullable = false)
	private Date createTime;

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public Integer getCounts() {
		return counts;
	}

	public void setCounts(Integer counts) {
		this.counts = counts;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
